
package com.sforce.soap.enterprise;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>RelatedList complex typeのJavaクラス。
 * 
 * <p>次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。
 * 
 * <pre>
 * &lt;complexType name="RelatedList">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="accessLevelRequiredForCreate" type="{urn:enterprise.soap.sforce.com}ShareAccessLevel"/>
 *         &lt;element name="buttons" type="{urn:enterprise.soap.sforce.com}DescribeLayoutButton" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="columns" type="{urn:enterprise.soap.sforce.com}RelatedListColumn" maxOccurs="unbounded"/>
 *         &lt;element name="custom" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         &lt;element name="field" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="limitRows" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="sobject" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="sort" type="{urn:enterprise.soap.sforce.com}RelatedListSort" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RelatedList", propOrder = {
    "accessLevelRequiredForCreate",
    "buttons",
    "columns",
    "custom",
    "field",
    "label",
    "limitRows",
    "name",
    "sobject",
    "sort"
})
public class RelatedList {

    @XmlElement(required = true, nillable = true)
    @XmlSchemaType(name = "string")
    protected ShareAccessLevel accessLevelRequiredForCreate;
    @XmlElement(nillable = true)
    protected List<DescribeLayoutButton> buttons;
    @XmlElement(required = true)
    protected List<RelatedListColumn> columns;
    protected boolean custom;
    @XmlElement(required = true, nillable = true)
    protected String field;
    @XmlElement(required = true)
    protected String label;
    protected int limitRows;
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true, nillable = true)
    protected String sobject;
    protected List<RelatedListSort> sort;

    /**
     * accessLevelRequiredForCreateプロパティの値を取得します。
     * 
     * @return
     *     possible object is
     *     {@link ShareAccessLevel }
     *     
     */
    public ShareAccessLevel getAccessLevelRequiredForCreate() {
        return accessLevelRequiredForCreate;
    }

    /**
     * accessLevelRequiredForCreateプロパティの値を設定します。
     * 
     * @param value
     *     allowed object is
     *     {@link ShareAccessLevel }
     *     
     */
    public void setAccessLevelRequiredForCreate(ShareAccessLevel value) {
        this.accessLevelRequiredForCreate = value;
    }

    /**
     * Gets the value of the buttons property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the buttons property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getButtons().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link DescribeLayoutButton }
     * 
     * 
     */
    public List<DescribeLayoutButton> getButtons() {
        if (buttons == null) {
            buttons = new ArrayList<DescribeLayoutButton>();
        }
        return this.buttons;
    }

    /**
     * Gets the value of the columns property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the columns property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getColumns().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RelatedListColumn }
     * 
     * 
     */
    public List<RelatedListColumn> getColumns() {
        if (columns == null) {
            columns = new ArrayList<RelatedListColumn>();
        }
        return this.columns;
    }

    /**
     * customプロパティの値を取得します。
     * 
     */
    public boolean isCustom() {
        return custom;
    }

    /**
     * customプロパティの値を設定します。
     * 
     */
    public void setCustom(boolean value) {
        this.custom = value;
    }

    /**
     * fieldプロパティの値を取得します。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getField() {
        return field;
    }

    /**
     * fieldプロパティの値を設定します。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setField(String value) {
        this.field = value;
    }

    /**
     * labelプロパティの値を取得します。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getLabel() {
        return label;
    }

    /**
     * labelプロパティの値を設定します。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setLabel(String value) {
        this.label = value;
    }

    /**
     * limitRowsプロパティの値を取得します。
     * 
     */
    public int getLimitRows() {
        return limitRows;
    }

    /**
     * limitRowsプロパティの値を設定します。
     * 
     */
    public void setLimitRows(int value) {
        this.limitRows = value;
    }

    /**
     * nameプロパティの値を取得します。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * nameプロパティの値を設定します。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * sobjectプロパティの値を取得します。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSobject() {
        return sobject;
    }

    /**
     * sobjectプロパティの値を設定します。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSobject(String value) {
        this.sobject = value;
    }

    /**
     * Gets the value of the sort property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the sort property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getSort().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RelatedListSort }
     * 
     * 
     */
    public List<RelatedListSort> getSort() {
        if (sort == null) {
            sort = new ArrayList<RelatedListSort>();
        }
        return this.sort;
    }

}
